Developer Documentation

QuickTime 4 API Documentation

QuickTime 4 Reference

| Previous | Chapter Contents | Chapter Top | Next |

AddSequenceTweenAtom

Listing 3 shows AddSequenceTweenAtom , a routine that adds a kTweenEntry atom for a sequenced tween. The newSequenceAtom returned may be passed into the AddTweenAtom and AddSequenceElement routines as their sequenceAtom parameter.

To create a nonsequenced tween, use AddTweenAtom instead.

Listing 3 Utility routine AddSequenceTweenAtom

OSErr AddSequenceTweenAtom( QTAtomContainer container, QTAtom parentAtom,
                    QTAtomID sequenceAtomID, QTAtom *newSequenceAtom )
{
    if ( (! container) || (sequenceAtomID == 0) )  { return paramErr; }

    return QTInsertChild( container, parentAtom, kTweenEntry,
                        sequenceAtomID, 0, 0, nil, newSequenceAtom );
}

© 1999 Apple Computer, Inc.

| Previous | Chapter Contents | Chapter Top | Next |